package org.clickframes.lab;

import javax.annotation.security.RolesAllowed;
import javax.annotation.security.RunAs;
import javax.inject.Inject;
import javax.inject.Named;

@Named
@RunAs("MANAGER")
public class SecuredBean {
//	@RolesAllowed("MANAGER")
	public String secured(){
		return "Hello World";
	}

	public String villageBicycle(){
		return "Bonjour tout le monde";
	}
	
	
	public String ejbSecured(){
//		return null;
		return securedBean2.getSecured();
	}
	
	@Inject
	private SecuredBean2 securedBean2;
}
